<template>
	<view>
		<uni-navbar :title="title"></uni-navbar>
		<!-- 搜索 -->
		<view class="search">
			<u-search v-model="keywords" input-align="left" placeholder="搜索客户姓名或者电话" :action-text="'查询'" height="50"></u-search>
		</view>
		
		<!-- 内容 -->
		<view class="block" v-for="(item,index) in 3" :key="index">
			<view class="b-1">
				<view>南京儿牙</view>
				<view>已确认</view>
			</view>
			<view class="b-2">
				客户信息：李四132566447447 <image @click="copy('客户信息')" src="../../../static/application/copy.png" mode="">
				</image>
			</view>
			<view class="b-2">
				订单号：CRM32143544434387345343 <image @click="copy('订单号')" src="../../../static/application/copy.png"
					mode=""></image>
			</view>
			<view class="b-2">
				缴费时间：2022-08-23 11:46
			</view>
			<view class="b-2">
				成交人：赵小六
			</view>
		</view>
		<view style="padding-bottom: 30rpx;"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				keywords: '',
				title: ''
			}
		},
		onLoad(opt) {
			this.title = opt.title
		},
		methods: {
			copy(data) {
				uni.setClipboardData({
					data: data,
					success(res) {
						uni.showToast({
							icon: 'none',
							title: '复制成功'
						})
					}
				})
			},
			toBack() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.search{
		width: 750rpx;
		background-color: #fff;
		padding: 20rpx 30rpx;
	}
	
	.block {
		background-color: #fff;
		padding: 30rpx;
		font-size: 24px;
		color: #999999;
		border-bottom: 1rpx solid #e6e6e6;
	
		.b-1 {
			display: flex;
			justify-content: space-between;
	
			view:nth-child(1) {
				font-size: 28rpx;
				font-family: Source Han Sans SC;
				font-weight: 600;
				color: #4D4D4D;
			}
	
			view:nth-child(2) {
				width: 88rpx;
				height: 30rpx;
				background: #CDE7FF;
				border-radius: 13rpx;
				font-size: 20rpx;
				font-family: Source Han Sans SC;
				font-weight: 400;
				color: #008EFE;
				text-align: center;
			}
		}
	
		.b-2 {
			font-size: 24rpx;
			line-height: 60rpx;
	
			image {
				width: 24rpx;
				height: 24rpx;
				margin-left: 10rpx;
			}
		}
	
		.color {
			color: #E02D38;
		}
	}
</style>
